<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Responsive Boxes</title>
    <style>
      .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
      }

      .box {
        width: calc(500% / 6 - 10px);
        margin: 5px;
        height: 100px; /* or any height */
        background-color: #333;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      @media (max-width: 1250px) {
        .box {
          width: calc(500% / 3 - 10px); /* Adjust width for 3 boxes per row */
        }
      }
    </style>
  </head>
  <body style="display: flex; align-items: center; justify-content: center">
    <div class="container">
      <div class="box">Box 1</div>
      <div class="box">Box 2</div>
      <div class="box">Box 3</div>
      <div class="box">Box 4</div>
      <div class="box">Box 5</div>
      <div class="box">Box 6</div>
    </div>
  </body>
</html>
